﻿<UserControl x:Class="JounceSilverlightDemo.Views.vwHeader"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
            xmlns:conv="clr-namespace:JounceSilverlightDemo.Converters"
            mc:Ignorable="d"
            d:DesignHeight="50" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>
            <conv:UserWelcomeConverter x:Key="UserWelcomeConverter" />
        </Grid.Resources>

        <StackPanel Name="stkUserDetails" Margin="5" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" >
            <TextBlock Name="txtWelcome" Margin="0,0,3,2" Text="Welcome" Foreground="Green" 
                       Visibility="{Binding UserName, Converter={StaticResource UserWelcomeConverter}}" VerticalAlignment="Bottom" />
            <TextBlock Name="txtUserName" Margin="3,0,0,0" FontWeight="Bold" 
                       CharacterSpacing="10" FontSize="15" VerticalAlignment="Bottom" 
                       Text="{Binding UserName}" />
        </StackPanel>
    </Grid>
</UserControl>
